
<link rel="stylesheet" href="/static/libs/layui/css/layui.css" media="all">
<form class="layui-form" action="">
    {foreach name="end_content_list" item="vo"}
    <div class="layui-form-item">
        <label class="layui-form-label">{$key}</label>
        <div class="layui-input-block">
            <input type="text" name="title" required  lay-verify="required" placeholder="请输入标题" value="{$vo}" autocomplete="off" class="layui-input">
        </div>
    </div>
    {/foreach}
</form>
<script src="/static/libs/layui/layui.js" charset="utf-8"></script>
<script>
//Demo
    layui.use('form', function () {
        var form = layui.form;

    });
</script>